﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace VietPremier.Models
{
    class ContactUsMetadata
    {
        [Display()]
        [Required(ErrorMessage = "This information is required")]
        public string Supplier { get; set; }

        [Display()]
        [Required(ErrorMessage = "This information is required")]
        public string FullName { get; set; }

        public string Gender { get; set; }

        [Display()]
        [Required(ErrorMessage = "Please enter your phone")]
        [StringLength(12, ErrorMessage = "This is not a valid mobile number")]
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "This is not a valid mobile number")]
        public string Telephone { get; set; }

        [Display()]
        [Required(ErrorMessage = "Please enter your email address")]
        [RegularExpression(".+\\@.+\\..+", ErrorMessage = "Please enter a valid email address")]
        public string Email { get; set; }

        [Display()]
        [Required(ErrorMessage = "This information is required")]
        public string Nationality { get; set; }

        [Display()]
        [Required(ErrorMessage = "This information is required")]
        public string Destination { get; set; }

        [Display()]
        [Required(ErrorMessage = "This information is required")]
        public string Place { get; set; }

        [Display()]
        [Required(ErrorMessage = "This information is required")]
        public string DateFrom { get; set; }

        [Display()]
        [Required(ErrorMessage = "This information is required")]
        public string DateTo { get; set; }

        
        [Display()]
        [Required(ErrorMessage = "This information is required")]
        [StringLength(2, ErrorMessage = "This is not a valid")]
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "NumberofAdults should contain only numbers")]
        public string NumberofAdults { get; set; }

        [Display()]
        [Required(ErrorMessage = "This information is required")]
        [StringLength(2, ErrorMessage = "This is not a valid")]
        [RegularExpression(@"^[0-9]{0,15}$", ErrorMessage = "NumberofChildren should contain only numbers")]
        public string NumberofChildren { get; set; }

        public string SpecialRequest { get; set; }
    }

}